package com.rentplant.mapper;

import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.address;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper  //申明作为底层交互
@Repository
public interface addressMapper {
//    查找全部地址信息
    public List<address> addressInfo(String openid);

    //    新增收货地址
    public boolean addAddress(JSONObject addressInfo);

    //修改地址
    public boolean updateAddress(JSONObject addressInfo);

//    删除地址
    public boolean delAddress(JSONObject addressInfo);
}
